#ifndef _pthread_pool
#define _pthread_pool
#include <my_header.h>
#include "pthreadque.h"
#include "tidarr.h"
typedef struct pthread_s
{
    char *filename;
    tid_t ptidarr;
    queue_t queue;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    int exitflag;
}share_t;
int pthreadshare_init(share_t *share,int workernum,char *filename);
int epolladd(int epfd,int fd);
int epolldel(int epfd,int fd);
int initTcp(char *ip,char *port);
int makeworker(share_t *share);
int transfile(int netfd,char *filename);
#endif
